package com.ryan.banner.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ryan.banner.entity.Banner;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 首页banner表 服务类
 * </p>
 *
 * @author ryan
 * @since 2020-07-28
 */
public interface BannerService extends IService<Banner> {

    /**
     * 分页+条件查询所有banner
     * @param pageIndex
     * @param pageSize
     * @param name
     * @return
     */
    Page<Banner> queryPage(long pageIndex, long pageSize, String name);

    List<Banner> getIndexBanner();
}
